package com.power.flowable.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@FeignClient(value = "sfflow-svr", contextId = "sfflow-svr", path = "/sfflow-svr")
@RestController
public interface ICacheFeign {

    /**
     * 清除指定key的redis缓存
     * @param key
     * @return
     */
    @PostMapping("/cache/cleanByKey")
    ResponseDTO cleanByKey(@RequestParam  String key);

}
